package com.fling.screen;

import com.badlogic.gdx.Screen;

public abstract class TransitionEffect {

    protected float duration;
    // returns a value between 0 and 1 representing the level of completion of the transition.
    protected abstract float getAlpha();
    
    abstract void update(float delta);

    abstract void render(Screen current, Screen next, float alpha);

    abstract boolean  isFinished();

    public TransitionEffect(float duration) {
        this.duration=duration;
    }
    
    public float getDuration(){
        return duration;
    }
}
